package client;

import java.util.Scanner;
import java.util.List;
import wsproxy.*;

public class Client {
    public static void main(String[] args) {
        WeatherWebService service = new WeatherWebService();
        WeatherWebServiceSoap weatherWSSoap = service.getWeatherWebServiceSoap();
        Scanner scanner = new Scanner(System.in);
	    System.out.println("输入要查询的城市");
        String CityName = scanner.next();
        scanner.close();
        ArrayOfString weatherInfo = weatherWSSoap.getWeatherbyCityName(CityName);
        List<String> lstWeatherInfo = weatherInfo.getString();
        // 遍历天气预报信息
        for (String string : lstWeatherInfo) {
            System.out.println(string);
            System.out.println("------------------------");
        }
    }

}
